package org.dromara.event.domain.vo;

import java.util.Date;

import org.dromara.event.domain.PassReservation;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 通行预约视图对象 pass_reservation
 *
 * @author Yi LH
 * @date 2025-05-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PassReservation.class)
public class PassReservationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 预约人id
     */
    @ExcelProperty(value = "预约人id")
    private Long applicantId;

    /**
     * 预约人姓名
     */
    @ExcelProperty(value = "预约人姓名")
    private String applicantName;

    /**
     * 随行人
     */
    @ExcelProperty(value = "随行人")
    private String companions;

    /**
     * 缘由
     */
    @ExcelProperty(value = "缘由")
    private String reason;

    /**
     * 计划进入时间
     */
    @ExcelProperty(value = "计划进入时间")
    private Date scheduledEntry;

    /**
     * 计划离开时间
     */
    @ExcelProperty(value = "计划离开时间")
    private Date scheduledExit;

    /**
     * 审批状态（0待审批 1通过 2拒绝）
     */
    @ExcelProperty(value = "审批状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=待审批,1=通过,2=拒绝")
    private String approvalStatus;

    /**
     * 审批人
     */
    @ExcelProperty(value = "审批人")
    private Long approver;


}
